package com.gnizr.snewsr;

import com.sun.syndication.feed.synd.*;
import com.sun.syndication.io.SyndFeedOutput;

import java.io.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;


import com.gnizr.db.dao.Comment;
import com.gnizr.web.action.AbstractAction;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

import com.gnizr.db.dao.Bookmark;
import com.gnizr.db.dao.bookmark.*;
import com.gnizr.db.dao.comment.CommentDao;
import com.gnizr.db.dao.DaoResult;



public class ListBookmarksAction extends AbstractAction{  
  private static final long serialVersionUID = 4604179423988890376L;
  
  private BookmarkDao bookmarkDao;
  private List<Bookmark> bookmarks;
  
  
  
	public BookmarkDao getBookmarkDao() {
		return bookmarkDao;
	}

	public void setBookmarkDao(BookmarkDao bookmarkDao) {
		this.bookmarkDao = bookmarkDao;
	}
  
 
  public List<Bookmark> getBookmarks() {	  
	  return bookmarks;}
    
  public void setBookmarks(List<Bookmark> bookmarks1) {}  

  @Override
	protected String go() throws Exception {

           
	            DaoResult<Bookmark> res = bookmarkDao.pageBookmarksAll(10);
				bookmarks = res.getResult();
				

				
				return SUCCESS;	
}
  
}